package com.hmys.api.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data;

@Data
public class WebHouse {
    private Long id;

    private String type;

    private String title;

    @JsonIgnore
    private Long countryId;

    private String  countryName;

    @JsonIgnore
    private Long stateId;

    private String stateName;

    private Long cityId;

    private String cityName;

    private String postCode;

    private String address;

    private String photo;

    private Double latitude;

    private Double longitude;

    private String handoverDate;

    @JsonIgnore
    private Long projectTypeId;

    private String projectType;

    private Long priceSectionId;

    @JsonIgnore
    private String priceSection;

    @JsonIgnore
    private Long houseTypeId;

    private String houseType;

    @JsonIgnore
    private Long investmentTypeId;

    private String investmentType;

    private Double price;

    private Double minPrice;

    private Double maxPrice;

    private Double area;

    private Double minArea;

    private Double maxArea;

    private Double rose;

    private Double rent;

    private Double downPayment;

    private String housingProperty;

    private String tags;

    private Integer status;

    @JsonIgnore
    private Boolean isShow;

    @JsonIgnore
    private Boolean isDelete;

    @JsonIgnore
    private Boolean isRecommend;

    @JsonIgnore
    private Boolean isTop;

    private Integer pageView;

    @JsonIgnore
    private Integer virtualPageView;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Integer createId;

    @JsonIgnore
    private Integer updateId;

    @JsonIgnore
    private Date updateTime;

    private String seoTitle;

    private String seoKeyword;

    private String seoDescription;

    private Double propertyTax;

    private Double propertyFee;

    private Double apr;

    //@JsonIgnore
    private Integer sort;

    public Integer getPageView() {
        //返回虚拟浏览量
        return virtualPageView;
    }
}